﻿using System;
using System.Collections.Generic;
using System.Text;

namespace BCEntity.TMS.Order.OrderAssignRecord
{
    /// <summary>
    /// 订单指派记录模型
    /// </summary>
    public class OrderAssignRecordEntity
    {
        /// <summary>
        /// 订单指派记录Id
        /// </summary>
        public long OrderAssignRecordId { get; set; }
        /// <summary>
        /// 订单Id
        /// </summary>
        public long OrderId { get; set; }
        /// <summary>
        /// 订单号
        /// </summary>
        public string OrderNo { get; set; }
        /// <summary>
        /// 管理员Id
        /// </summary>
        public long AdminId { get; set; }
        /// <summary>
        /// 管理员姓名
        /// </summary>
        public string AdminName { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        public string Avatar { get; set; }
        /// <summary>
        /// 部门Id
        /// </summary>
        public int DepartmentId { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string DepartmentName { get; set; }
        /// <summary>
        /// 公司Id
        /// </summary>
        public int CompanyId { get; set; }
        /// <summary>
        /// 公司名称
        /// </summary>
        public string CompanyName { get; set; }
        /// <summary>
        /// 已指派(0未指派 1已指派)
        /// </summary>
        public bool IsAssign { get; set; }
        /// <summary>
        /// 指派未指派原因
        /// </summary>
        public string Reason { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 司机ID
        /// </summary>
        public long? DriverId { get; set; }

        /// <summary>
        /// 车牌号
        /// </summary>
        public string VehicleNo { get; set; }

        /// <summary>
        /// 司机姓名
        /// </summary>
        public string DriverName { get; set; }

        /// <summary>
        /// 是否已接单
        /// </summary>
        public bool IsOrderReceive { get; set; }

        /// <summary>
        /// 接单时间
        /// </summary>
        public DateTime? ReceiveTime { get; set; }

        /// <summary>
        /// 指派人Id
        /// </summary>
        public long? AssignEditerId { get; set; }

        /// <summary>
        /// 指派人姓名
        /// </summary>
        public string AssignEditer { get; set; }

        /// <summary>
        /// 指派时间
        /// </summary>
        public DateTime? AssignTime { get; set; }

        /// <summary>
        /// 指派超时时间
        /// </summary>
        public DateTime? AssignTimeOut { get; set; }

        /// <summary>
        /// 指派人公司ID
        /// </summary>
        public int? AssignEditerCompanyId { get; set; }

        /// <summary>
        /// 指派人公司名称
        /// </summary>
        public string AssignEditerCompanyName { get; set; }

        /// <summary>
        /// 指派人部门ID
        /// </summary>
        public int? AssignEditerDepartmentId { get; set; }

        /// <summary>
        /// 指派人部门名称
        /// </summary>
        public string AssignEditerDepartmentName { get; set; }
        /// <summary>
        /// 司机接单时间
        /// </summary>
        public DateTime? DriveOrderPromising { get; set; }
    }
}
